package com.guoyh.bilui.rhelper;

import android.content.Context;
import android.util.AttributeSet;
import android.view.KeyEvent;

import com.ruffian.library.widget.RLinearLayout;
import com.ruffian.library.widget.helper.RBaseHelper;

/**
 * @CreateDate: 2021/8/31 2:24 下午
 * @Author: guoyh
 * @Description: java类作用描述
 */
public class ELinearLayout extends RLinearLayout {
    public ELinearLayout(Context context) {
        super(context);
    }

    public ELinearLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public ELinearLayout(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public void setSelected(boolean selected) {
        RBaseHelper helper = getHelper();
        if (selected) {
            setBackgroundColor(helper.getBackgroundColorSelected());
        } else {
            setBackgroundColor(helper.getBackgroundColorNormal());
        }

    }
}
